import {ElementClass} from "@/js/elementMagic";

export const Card = (data = {
    name: "",
    sex: "",
    race: "",
    hometown: "",
    fame: "",
    gold: "",
    ap: "",
    armor: "",
    resistance: "",
    HP: {
        value: "",
        max: "",
        doubleMax: "",
        status: ""
    },
    MP: {
        value: "",
        max: "",
        doubleMax: "",
        status: ""
    },
    attribute: {
        pow: "",
        spd: "",
        phy: "",
        int: "",
        sol: "",
        cha: ""
    },
    fatePoint: "",
    slotPoint: "",
    luckPoint: "",
    item: [],
    skill: [],
    warPowerPoint: "",
    warPower: [],
    soulMagicPoint: "",
    soulMagicLevel: "",
    soulMagic: [],
    elementMagicClass: ElementClass(),
    elementMagicLevel: "",
    exMagic: [{}],
    otherDescribe: [],
    story: "",
    weapon: []
}) => {
    return {
        data: data,
        id:-1,
        PLVisible:true
    }
}
export const Weapon = (
    name = "",
    DB = "",
    ap = "",
    reload = "",
    wp = "",
    damage = "",
    describe = "",
    dependent=""
) => {
    return {
        name: name,
        DB: DB,
        ap: ap,
        reload: reload,
        wp: wp,
        damage: damage,
        describe: describe,
        dependent:dependent
    }
}
export const WarPower = (
    name = "",
    ap = "",
    sp = "",
    effect = ""
) => {
    return {
        name: name,
        ap: ap,
        sp: sp,
        effect: effect
    }
}


